<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<title>仓储管理|登录</title>
	<link th:href="@{/css/style2.0.css}" rel="stylesheet" />
	<link th:href="@{/css/login.css}" rel="stylesheet" />
</head>
<body>
<div id="contPar" class="contPar">
	<div id="page1"  style="z-index:1;">
		<div class="title0">仓储管理平台</div>
		<div class="imgGroug">
			<ul>
				<img alt="" class="img0 png" th:src="@{/img/page1_0.png}">
				<img alt="" class="img1 png" th:src="@{/img/page1_1.png}">
				<img alt="" class="img2 png" th:src="@{/img/page1_2.png}">
			</ul>
		</div>
		<img alt="" class="img3 png" th:src="@{/img/page1_3.jpg}">
	</div>
</div>
<div class="tyg-div-denglv">
	<div class="tyg-div-form">
		<form action="login" method="post">
			<!--<h2>登录</h2>>--><p class="tyg-p">欢迎登录</p>
			<div style="margin:5px 0px;">
				<input id="loginName" name="loginName" type="text" placeholder="请输入账号..."/>
			</div>
			<div style="margin:5px 0px;">
				<input id="password" name="password" type="password" placeholder="请输入密码..."/>
			</div>
			<!--<div style="margin:5px 0px;">
				<input type="text" style="width:150px;" placeholder="请输入验证码..."/>
				<img src="./img/1.png" style="vertical-align:bottom;" alt="验证码"/>
			</div>-->
			<button type="submit" >登<span style="width:20px;"></span>录</button>
		</form>
	</div>
</div>
<script th:src="@{/js/jquery-2.1.1.js}"></script>
<script th:src="@{/js/jquery-migrate-1.1.0.js}"></script>
<script th:src="@{/js/login.js}"></script>

<script th:inline="javascript">
    // var error = [[${error}]];
    $(document).ready(function () {


        document.getElementById("loginName").focus();

        // if(error!=null){
        //     swal({
        //         title : "温馨提示",
        //         text : error
        //     });
        // }
    });


    function login() {
        var username=document.getElementById("loginName").value;
        var password=document.getElementById("password").value;
        if(!username){
            return false;
        }
        if(!password){
            return false;
        }
       return  true;
    }

</script>
</body>

</html>
